#coding=utf-8

# 获取待处理的源字符串
source_string = input()

# 请在下面添加字符串转换的代码
###### Begin ######
source_string = source_string.strip()

source_string = source_string.title()
print(source_string)
print(len(source_string))

####### End #######
